/*
 * @Descripttion: 
 * @version: @ 1.0.0
 * @Author: 朱江洲
 * @Date: 2022-03-04 10:02:19
 * @LastEditors: 朱江洲
 * @LastEditTime: 2022-05-17 09:18:29
 */
import request from "@/utils/request.js";

// 回款计划列表

export const planList = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/recovery/planList',
        params
    })
}

// - 导出选中回款计划
export const planExportByIds = data => {
    return request({
        method: 'post',
        url: '/serviceProvide/recovery/planExportByIds',
        data
    })
}

// - 新增回款计划
export const planInsert = data => {
    return request({
        method: 'post',
        url: '/serviceProvide/recovery/planInsert',
        data
    })
}

// - 新增回款计划-客户列表
export const customerList = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/recovery/customerList',
        params
    })
}

// - 新增回款计划-合同列表

export const contractList = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/recovery/contractList',
        params
    })
}

// - 更新回款计划
export const planUpdate = data => {
    return request({
        method: 'post',
        url: '/serviceProvide/recovery/planUpdate',
        data
    })
}

// - 删除回款计划
export const planDelete = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/recovery/planDelete',
        params
    })
}
// - 删除回款
export const xshkDelete = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/recovery/delete',
        params
    })
}

// 批量新增
export const planBatchInsert = data => {
    return request({
        method: 'post',
        url: '/serviceProvide/recovery/planBatchInsert',
        data
    })
}

// 回款列表
export const getList = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/recovery/list',
        params
    })
}
// - 新增回款
export const XshkInsert = data => {
    return request({
        method: 'post',
        url: '/serviceProvide/recovery/insert',
        data
    })
}


// 选择期数
export const getIssues = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/recovery/getIssues',
        params
    })
}

// 更新回款
export const updateXshk = data => {
    return request({
        method: 'post',
        url: '/serviceProvide/recovery/update',
        data
    })
}
// - 审批流程

export const auditProcess = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/recovery/auditProcess',
        params
    })
}


// 回款计划更换负责人
export const changePlanDirector = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/recovery/changePlanDirector',
        params
    })
}

// 回款更换负责人

export const changeDirector = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/recovery/changeDirector',
        params
    })
}


// - 导出选中回款
export const exportByIds = data => {
    return request({
        method: 'post',
        url: '/serviceProvide/recovery/exportByIds',
        data
    })
}



// 同意拒绝
export const audit = data => {
    return request({
        method: 'post',
        url: '/serviceProvide/recovery/audit',
        data
    })
}

// 是否是本人申请
export const oneself = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/recovery/oneself',
        params
    })
}

// 回款计划尾部价格
export const planFooter = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/recovery/planFooter',
        params
    })
}

// 回款尾部价格
export const xshkFooter = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/recovery/footer',
        params
    })
}

// 是否能同意拒绝
export const canAudit = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/recovery/canAudit',
        params
    })
}

// 撤回
export const withdraw = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/recovery/withdraw',
        params
    })
}
export const getInfo = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/recovery/getInfo',
        params
    })
}

// 回款作废
export const annulled = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/recovery/annulled',
        params
    })
}
